package com.jyx.refactor.beginner;

public class Test {

	public static void main(String[] args) {
		
		Customer cus = new Customer("老张");
		cus.statement();
		cus.addRental(new Rental(new Movie("霸王别姬", Movie.REGULAR), 5));
		cus.addRental(new Rental(new Movie("大闹天宫", Movie.CHILDRENS), 1));
		cus.addRental(new Rental(new Movie("枪王", Movie.NEW_RELEASE), 2));
		cus.statement();
	}
	
}
